/*
 * @FilePath: Publish.ts
 * @Author: jack
 * @Date: 2025-02-19 14:10:49
 * @LastEditors: liyin 2179253556@qq.com
 * @LastEditTime: 2025-07-16 11:46:50
 * Copyright: 2025 xxxTech CO.,LTD. All Rights Reserved.
 * @Descripttion: 
 */
import { get, post, put, delete2 } from '../../util/http'
// 集团新闻
// 获取模块列表
export const moduleList = () => get('/admin/publish/moduleList')
// 新闻类别列表
export const newsCategory = (obj: any) => get('/admin/publish/news/category', obj)
// 添加新闻类别
export const addNewsCategory = (obj: any) => post('/admin/publish/news/category', obj)
// 编辑新闻类别
export const editNewsCategory = (obj: any) => put('/admin/publish/news/category', obj)
// 删除新闻类别
export const delNewsCategory = (obj: any) => delete2('/admin/publish/news/category', obj)
// 新闻类别显示开关
export const showNewsCategory = (obj: any) => put('/admin/publish/news/category/show', obj)
// 新闻类别上移
export const upNewsCategory = (obj: any) => put('/admin/publish/news/category/up', obj)
// 新闻类别下移
export const downNewsCategory = (obj: any) => put('/admin/publish/news/category/down', obj)
// 新闻公告列表
export const newsList = (obj: any) => get('/admin/publish/news', obj)
// 新闻公告审核
export const newsReview = (obj: any) => get('/admin/publish/news/review', obj)
// 新闻公告添加
export const addNews = (obj: any) => post('/admin/publish/news', obj)
// 修改新闻公告
export const editNews = (obj: any) => put('/admin/publish/news', obj)
// 新闻公告详情
export const detailNews = (obj: any) => get('/admin/publish/news/detail', obj)
// 删除新闻公告
export const delNews = (obj: any) => delete2('/admin/publish/news', obj)
// 上架新闻公告
export const upNews = (obj: any) => put('/admin/publish/news/up', obj)
// 下架新闻公告
export const downNews = (obj: any) => put('/admin/publish/news/down', obj)
// 统计数据
export const statList = (obj: any) => get('/admin/stat/list', obj)
// 公告列表
export const noticeList = (obj: any) => get('/admin/publish/notices', obj)
// 添加公告
export const addNotice = (obj: any) => post('/admin/publish/notices', obj)
// 修改公告
export const editNotice = (obj: any) => put('/admin/publish/notices', obj)
// 删除公告
export const delNotice = (obj: any) => delete2('/admin/publish/notices', obj)
// 学校风景
// 图片列表
export const photosList = (obj: any) => get('/admin/publish/school_photos', obj)
// 添加图片
export const addPhotos = (obj: any) => post('/admin/publish/school_photos', obj)
// 修改图片
export const editPhotos = (obj: any) => put('/admin/publish/school_photos', obj)
// 删除图片
export const delPhotos = (obj: any) => delete2('/admin/publish/school_photos', obj)
// 学校校报
// 图片列表
export const xiaobaoList = (obj: any) => get('/admin/publish/xiaobao', obj)
// 添加图片
export const addXiaobao = (obj: any) => post('/admin/publish/xiaobao', obj)
// 修改图片
export const editXiaobao = (obj: any) => put('/admin/publish/xiaobao', obj)
// 删除图片
export const delXiaobao = (obj: any) => delete2('/admin/publish/xiaobao', obj)

// 科研报
// 图片列表
export const keyanList = (obj: any) => get('/admin/publish/keyan', obj)
// 添加图片
export const addKeyan = (obj: any) => post('/admin/publish/keyan', obj)
// 修改图片
export const editKeyan = (obj: any) => put('/admin/publish/keyan', obj)
// 删除图片
export const delKeyan = (obj: any) => delete2('/admin/publish/keyan', obj)

